<!doctype html>
<html lang="en">
<head>
	<meta charset="UTF-8">
	<title>oquery test</title>
	<script type="text/javascript" src="../src/oquery.js"></script>
</head>
<body>
	<div>ss
		<p>ddd</p>
		<div>11</div>
	</div>
	<div>dd
		<div>11</div>
		<div>22</div>
	</div>
	<script>
		oQuery('div:nth-last-of-type(odd)').forEach(function(v){
			v.style.color = '#f00'
		});
	</script>
	<style>
		/*div:first-of-type{ color:#f00;}*/
	</style>
</body>
</html>